<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <p>处理各种表单元素:获取、设置输入框的值</p>
    <input type="text" v-model="val1">
    <p>您输入的值是：{{val1}}</p>
    <hr>
    <textarea v-model="val2"></textarea>
    <p>您输入的值是：{{val2}}</p>
    <hr>
    <span>性别：</span>
    <input type="radio" v-model="val3" value="1">男
    <input type="radio" v-model="val3" value="2">女
    <p>您的性别是：{{val3}}</p>
    <hr>
    <span>武功：</span>
    <input type="checkbox" value="haoziweizhi" v-model="val4">耗子尾汁
    <input type="checkbox" value="E" v-model="val4">没有闪
    <input type="checkbox" value="jiehuafa" v-model="val4">接化发
    <input type="checkbox" value="bujiangwude" v-model="val4">不讲武德
    <p>您的技能是：{{val4}}</p>
    <hr>
    <span>收货地址</span>
    <select v-model="val5">
      <option value="1">京</option>
      <option value="2">津</option>
      <option value="3">沪</option>
      <option value="4">渝</option>
    </select>
    <p>您的地址是：{{val5}}</p>
    <hr>
    <span>工作城市</span>
    <select v-model="val6" multiple>
      <option value="sh">上海</option>
      <option value="hz">杭州</option>
      <option value="zz">郑州</option>
      <option value="sz">深圳</option>
    </select>
    <p>您的地址是：{{val6}}</p>
  </div>
  <script src="../vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        val1: '',
        val2: '',
        val3: '',
        val4: [],
        val5: '',
        val6: []
      }
    })
  </script>
</body>
</html>